package com.fengmi.vo;

import lombok.*;

/**
 * <p>title: com.miletao.vo</p>
 * <p>Company: wendao</p>
 * author zhuximing
 * date 2021/6/16
 * description:   事务操作（增删改）
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@RequiredArgsConstructor
public class ResultVO {
    private String code; //业务code   不是响应码

    @NonNull
    private boolean success;  //标记操作的状态

    @NonNull
    private String msg;    //错误信息


    private Object data ;   //数据


    public ResultVO(@NonNull boolean success, @NonNull String msg, Object data) {
        this.success = success;
        this.msg = msg;
        this.data = data;
    }
}